#ifndef __UNIT_H__
#define __UNIT_H__

#include <iostream>
#include <string>
using namespace std;

class Unit {
public:
   Unit (int ratio, const string m_name);

   int toBaseUnit (const int amount) const;
   friend ostream& operator << (ostream& out, const Unit&);

private:
   int    m_ratio;
   string m_name;
};

#endif
